<?
include_once("map/submitTroughImage.class.php");
$sti = new submitTroughImage();
$sti->setBackendPath('sti_tmp');
$sti->setFont("map/fonts/DESTROY_.TTF");

//set custom background image
$sti->setBackgroundImage("map/background.jpg");

//set colors RGB or HEX
$sti->setColor("#292929");

//set the amount of char in the code...
$sti->setCharAmount(7);

//set string type. (int, char or varchar)
$sti->setStringType('char');

//create image
$sti->createImage(170,32);
?>
<div class='tgp_content_2'>
	<div class='frm_register'>
    	<div class='title_2 cufon' style='width:360px;margin-bottom:20px;'>Login</div>
        <form action='#' method="post" onsubmit="return check_login()">
            <table cellpadding="7" cellspacing="0" border="0" width="310" style='margin:0 auto;'>
                <tr>
                    <td width='85' class='td_label'>User name</td>
                    <td width="190"><input type='text' class='txt_login' name='txt_login_username' id='txt_login_username' value='' /></td>
                </tr>
                <tr>
                    <td width='85' class='td_label'>Password</td>
                    <td width="190"><input type='password' class='txt_login' name='txt_login_password' id='txt_login_password' value='' /></td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type='submit' class='btn_login' value='Login' /></td>
                </tr>
            </table>
        </form>
    </div>
    <div class='frm_login'>
    	<div class='title_1 cufon' style='width:420px;margin-bottom:10px;'>Register</div>
    	<form action='' onsubmit='return check_register()' method="post">
        	<table cellpadding="5" cellspacing="0" border="0" width="320" style='' >
            	<tr>
                	<td class='td_label' width='120'>User name: </td>
                    <td width="190">
                    	<input type='text' class='txt_login' name='txt_username' id='txt_username' value='' />
                    </td>
                </tr>
                <tr>
                	<td class='td_label'>Password: </td>
                    <td>
                    	<input type='password' class='txt_login' name='txt_password' id='txt_password' value='' />
                    </td>
                </tr>
                <tr>
                	<td class='td_label'>Re-type password: </td>
                    <td>
                    	<input type='password' class='txt_login' name='txt_repassword' id='txt_repassword' value='' />
                    </td>
                </tr>
                
                <tr>
                	<td class='td_label'>Email: </td>
                    <td>
                    	<input type='text' class='txt_login' name='txt_email' id='txt_email' value='' />
                    </td>
                </tr>
                <tbody class="td_body">
                <tr>
                	<td class='td_label'>Code: </td>
                    <td>
                    	<img src="/map/image.php?<?=$sti->getKey();?>" ><?=$sti->parseKeyInput();?>
                    </td>
                </tr>
                <tr>
                	<td></td>
                    <td><?=$sti->parseStringInput();?></td>
                </tr>
                </tbody>
                <tr>
                	<td></td>
                    <td><input type='submit' class='btn_login' value='Register' /></td>
                </tr>
            </table>
        </form>
    </div>
    <div style='clear:both'></div>
</div>